﻿using Xtensive.Orm;

namespace NoKeyGenerator.Model
{
    [HierarchyRoot]
    [KeyGenerator(KeyGeneratorKind.None)]
    public class Book : Entity
    {
        [Field, Key]
        public string Isbn { get; private set; }

        [Field]
        public string Title { get; set; }

        [Field]
        public string Author { get; set; }

        public Book(Session session, string isbn)
            : base(session, isbn)
        {}
    }
}